package com.ktgj.service.service.impl;

import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.ContractLinkBoardingPricelogMapper;
import com.ktgj.service.domain.ContractLinkBoardingPricelog;
import com.ktgj.service.service.IContractLinkBoardingPricelogService;

/**
 * 合同值机价格记录
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class ContractLinkBoardingPricelogServiceImpl implements IContractLinkBoardingPricelogService 
{
    @Autowired
    private ContractLinkBoardingPricelogMapper contractLinkBoardingPricelogMapper;

    /**
     * 查询合同值机价格记录

     * 
     * @param operationlogId 合同值机价格记录
ID
     * @return 合同值机价格记录

     */
    @Override
    public ContractLinkBoardingPricelog selectContractLinkBoardingPricelogById(Long operationlogId)
    {
        return contractLinkBoardingPricelogMapper.selectContractLinkBoardingPricelogById(operationlogId);
    }

    /**
     * 查询合同值机价格记录
列表
     * 
     * @param contractLinkBoardingPricelog 合同值机价格记录

     * @return 合同值机价格记录

     */
    @Override
    public List<ContractLinkBoardingPricelog> selectContractLinkBoardingPricelogList(ContractLinkBoardingPricelog contractLinkBoardingPricelog)
    {
        return contractLinkBoardingPricelogMapper.selectContractLinkBoardingPricelogList(contractLinkBoardingPricelog);
    }

    /**
     * 新增合同值机价格记录

     * 
     * @param contractLinkBoardingPricelog 合同值机价格记录

     * @return 结果
     */
    @Override
    public int insertContractLinkBoardingPricelog(ContractLinkBoardingPricelog contractLinkBoardingPricelog)
    {
        contractLinkBoardingPricelog.setCreateTime(DateUtils.getNowDate());
        return contractLinkBoardingPricelogMapper.insertContractLinkBoardingPricelog(contractLinkBoardingPricelog);
    }

    /**
     * 修改合同值机价格记录

     * 
     * @param contractLinkBoardingPricelog 合同值机价格记录

     * @return 结果
     */
    @Override
    public int updateContractLinkBoardingPricelog(ContractLinkBoardingPricelog contractLinkBoardingPricelog)
    {
        contractLinkBoardingPricelog.setUpdateTime(DateUtils.getNowDate());
        return contractLinkBoardingPricelogMapper.updateContractLinkBoardingPricelog(contractLinkBoardingPricelog);
    }

    /**
     * 批量删除合同值机价格记录

     * 
     * @param operationlogIds 需要删除的合同值机价格记录
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkBoardingPricelogByIds(Long[] operationlogIds)
    {
        return contractLinkBoardingPricelogMapper.deleteContractLinkBoardingPricelogByIds(operationlogIds);
    }

    /**
     * 删除合同值机价格记录
信息
     * 
     * @param operationlogId 合同值机价格记录
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkBoardingPricelogById(Long operationlogId)
    {
        return contractLinkBoardingPricelogMapper.deleteContractLinkBoardingPricelogById(operationlogId);
    }
}
